package org.jeecg.modules.fk.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.basesource.entity.FpCjDto;
import org.jeecg.modules.fk.entity.DjOrg;
import org.jeecg.modules.fk.entity.vo.AuthOrgCountVO;

import java.util.List;

/**
* @Entity generator.domain.DjOrg
*/
public interface DjOrgMapper extends MppBaseMapper<DjOrg> {


    List<DjOrg> listForPage(@Param("djOrg") DjOrg djOrg, @Param("orderColumn") String orderColumn, @Param("orderType") String orderType);

    /**
     * 改写分页
     * @param page
     * @param djOrg
     * @return
     */
    IPage<DjOrg> selectPage2(Page<DjOrg> page, @Param("djOrg")DjOrg djOrg, @Param("orderColumn") String orderColumn, @Param("orderType") String orderType);

    AuthOrgCountVO authOrgCount(DjOrg djOrg);

    List<DjOrg> incrementListByShardTotal(FpCjDto dto);

    List<DjOrg> fullDoseListByShardTotal(FpCjDto dto);

    void updateDjorgById(@Param("djOrg")DjOrg djOrg);
}
